home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / util / pictcont.sit / PICT Control.rsrc / TEXT_304.txt < prev    next >
Text File  |  1988-11-15  |  1KB  |  7 lines

  1. NOTE:  Feel free to make the pictures used by PICT Control purgeable.  PICT Control dutifully calls LoadResource() before any attempt to use a picture.  In the unlikely event that the picture cannot be loaded, an ΓÇÿXΓÇÖ is simply drawn across the control to indicate the error.
  2.  
  3. Further, since a control canΓÇÖt know whether a picture is in use by another control (or by some part of your program) it does not attempt to release the picture resource itΓÇÖs using when it is disposed of, or when it is told to use a different picture.  This means that unless the pictures are made purgeable, they will be loaded, BUT NEVER UNLOADED (which is not a good thing).
  4.  
  5. WARNING:  Use the functions supplied by the control manager to change the values in the control record fields.  Directly changing the Value, Min and Max fields will not permit the control to update itself to conform to the change.
  6.  
  7. Also, donΓÇÖt ever change the type of a PICT Control once it has been created ΓÇô unwonderful things are likely to happen.  Changing an Unframed Transparent type to a Framed Picture type is a good example of what you shouldnΓÇÖt do once a control has been created.